package com.hongyun.tms.common.dto;

import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * 树状结构顶层元素
 *
 * @author
 **/
@Getter
@Setter
public class CheckDTO implements Serializable {

    private static final long serialVersionUID = -4405388942387953237L;

    /**
     * Gid
     **/
    protected String key;

    /**
     * 父级Gid
     **/
    protected Object value;


    public static CheckDTO buildDTO(String key, Object value) {
        CheckDTO dto = new CheckDTO();
        dto.setKey(key);
        dto.setValue(value);
        return dto;
    }
}
